/*
 * @Description: 流程实例相关接口
 * @Author: zhuoda
 * @Date: 2024-03-21
 */
import {postRequest, getRequest, putRequest, deleteRequest} from '/@/lib/axios';
export const flowTaskApi = {
  // 查询流程部署列表
  listTask: (param) => {
    return postRequest('/flowable/task/query', param);
  },

  // 查询流程部署详细
  cancelTask: (processInstanceId) => {
    return getRequest(`/flowable/task/cancel/${processInstanceId}`);
  },

    // 查询流程部署详细
    delTask: (processInstanceId) => {
      return getRequest(`/flowable/task/delete/${processInstanceId}`);
    },

    getViewer: (processInstanceId) => {
      return getRequest(`/flowable/task/viewer/${processInstanceId}`)
    },

    getRecord: (processInstanceId) => {
      return getRequest(`/flowable/task/getRecord/${processInstanceId}`)
    }
};
